<template>
  <div class="goodsDesc-container">
    <h4 class="title">{{ info.title }}</h4>
    <hr>
    <div class="content" v-html="info.content"></div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      info: {}
    };
  },
  created() {
      this.getInfo();
  },
  methods: {
    getInfo() {
      this.$http.get("api/goods/getdesc/" + this.$route.params.id).then(result => {
          if (result.data.status === 0) {
              this.info = result.data.message[0];
          }
      });
    }
  }
};
</script>
<style lang="scss">
.goodsDesc-container{
    padding: 3px;
    .title{
        color: #22f;
        font-size: 15px;
        text-align: center;
        margin: 15px 0;
    }
    .content{
        img{
            width: 100%;
            height: 100%;
        }
    }
}
</style>